﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Krile.Forms.Dialogs.Popup.ConfigCompatibleElements
{
    public partial class CCItem : UserControl
    {
        public enum NotificationLevels { Incompatible, Warning, Notice };

        public CCItem(NotificationLevels nLv, string desc)
        {
            InitializeComponent();
            switch (nLv)
            {
                case NotificationLevels.Incompatible:
                    this.iconPicture.Image = Properties.Resources.losted;
                    this.TitleLabel.Text = Lang.Compatibility.Title_Losted;
                    break;
                case NotificationLevels.Warning:
                    this.iconPicture.Image = Properties.Resources.warning;
                    this.TitleLabel.Text = Lang.Compatibility.Title_Warning;
                    break;
                case NotificationLevels.Notice:
                    this.iconPicture.Image = Properties.Resources.notify;
                    this.TitleLabel.Text = Lang.Compatibility.Title_Notify;
                    break;
            }
            descriptionLabel.Text = desc;
        }
    }
}
